package com.xusheng.cli.entity.backAgentModule;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xusheng.cli.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理商信息表(BackAgent)表实体类
 *
 * @author whr
 * @since 2024-03-19 17:56:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BackAgent extends BaseEntity {
    private static final long serialVersionUID = 1898828918999633076L;
    private String account;
    private String password;
    /**
     * 姓名
     */
    private String name;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 代理级别
     */
    private Integer level;
    /**
     * 佣金比例
     */
    private Double commissionRate;
    /**
     * 审核状态
     */
    private Integer state;
    /**
     * 成为分销商时间
     */
    private Date passingTime;
    /**
     * 父id
     */
    private Long parentId;
    @TableField(exist = false)
    private String parentName;

    private BigDecimal balance;
    @TableField(exist = false)
    private Double parentRate;

}

